package com.kfm;

import java.lang.reflect.Method;

public class BridgeMethodExample {
    public static void main(String[] args) throws NoSuchMethodException {
        Class<?> clazz = MyClass.class;
        Method[] methods = clazz.getDeclaredMethods();
        for (Method method : methods) {
            System.out.println(method + "==>" + method.isBridge());
        }
    }
}

class MyParentClass<T> {
    public void print(T value) {
        System.out.println(value);
    }
}

class MyClass extends MyParentClass<String> {
    // This is a bridge method generated by the compiler
    @Override
    public void print(String value) {
        super.print(value);
    }
}
